<?php 
class CMS_Models_Product extends Zend_Db_Table_Abstract
{
    protected $_name = "product";	
	
	public function __construct( )
  	{
	  parent::__construct(array('table' => $this->_name));
  	}
  	
	public function getProductById($id)
	{
      return $this->fetchRow("id = '$id' ");
	} 
	
	public function getHightProducts()
	{
	  return $this->fetchAll("hightlight = 1");
	}
	
	public static function getProductsByCategory($c)
	{
	  return $this->fetchAll("id_category = '$c'", "id");
	}
}